<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<form id="form1" action="net2.do" method="post">
id：<input type="text" name="id"/>
姓名：<input type="text" name="name"/>
<input type="button" value="goA1" onclick="goA1()"/>
<input type="button" value="goA2" onclick="goA2()"/>
<input type="button" value="goB1" onclick="goB1()"/>
<input type="button" value="goB2" onclick="goB2()"/>
</form>
</body>
<script>
function goA1(){
	var form = document.getElementById("form1");
	form.action="net2.do?cmd=goA1";
	form.submit();
}
function goA2(){
	var form = document.getElementById("form1");
	form.action="net2.do?cmd=goA2";
	form.submit();
}


function goB1(){
	var form = document.getElementById("form1");
	form.action="net2.do?cmd=goB1";
	form.submit();
}
function goB2(){
	var form = document.getElementById("form1");
	form.action="net2.do?cmd=goB2";
	form.submit();
}
</script>
</html>